package com.syni.mdd.yhd.common.all.service.impl;

import com.syni.mdd.yhd.common.all.dao.BaseJPADao;
import com.syni.mdd.yhd.common.all.dao.jpa.BmsLocalLifeDao;
import com.syni.mdd.yhd.common.all.dao.jpa.BmsUserLifeInfoDao;
import com.syni.mdd.yhd.common.all.entity.BmsLocalLife;
import com.syni.mdd.yhd.common.all.entity.BmsLocalLifeGoodsRelation;
import com.syni.mdd.yhd.common.all.entity.BmsUserLifeInfo;
import com.syni.mdd.yhd.common.all.service.BmsLocalLifeGoodsRelationService;
import com.syni.mdd.yhd.common.all.service.BmsLocalLifeService;
import com.syni.mdd.yhd.common.all.service.BmsUserLifeInfoService;
import com.syni.mdd.sjb.common.component.utils.common.utils.ParamsMap;
import com.syni.mdd.sjb.common.component.utils.common.utils.ResultMapHelper;
import com.syni.mdd.yhd.common.all.utils.SpecificationUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;

/**
* @author: huangwenquan
* @date:  2020/2/24 14:50
* @description:本地生活
*/
@Service
public class BmsUserLifeInfoServiceImpl extends BaseService<BmsUserLifeInfo, Integer> implements BmsUserLifeInfoService {

    @Autowired
    BmsUserLifeInfoDao bmsUserLifeInfoDao;

    @Override
    public BaseJPADao<BmsUserLifeInfo, Integer> getBaseDao() {
        return bmsUserLifeInfoDao;
    }

    @Override
    public List<BmsUserLifeInfo> findByUserId(Integer userId) {
        return bmsUserLifeInfoDao.findByUserId(userId);
    }
}